package io.openkunlun.javadsl.server;

import io.openkunlun.javadsl.client.DaprClient;

public interface FailureDetector {

    FailureDetector AVAILABLE = (c) -> FailureDetected.AVAILABLE;
    FailureDetector UNAVAILABLE = (c) -> FailureDetected.UNAVAILABLE;

    /**
     * @param client
     * @return
     */
    FailureDetected detect(DaprClient client);
}
